set(CASTER_SRCS
    memcache.cpp
    filecache.cpp
    source.cpp
    file_source.cpp
    http_source.cpp
    settings.cpp
    connection.cpp
    server.cpp
    service.cpp
    buffer.cpp
    get_opt.cpp
    ts.cpp
    )
# TODO: better handle of MOC
qt4_automoc(${CASTER_SRCS})
add_library(livecaster STATIC ${CASTER_SRCS})
target_link_libraries(livecaster ${QT_LIBRARIES} ${LIBMemCached_LIBRARY})
#-------------------------------------------------------------------------
set(SERVER_SRCS
    main.cpp)
add_executable(liveserver ${SERVER_SRCS})
target_link_libraries(liveserver livecaster)
install(TARGETS liveserver
   RUNTIME DESTINATION bin)
